from numpy import *

def AutoNorm(dataSet):
    minValues = dataSet.min(0)
    maxValues = dataSet.max(0)
    total_difference_value = maxValues - minValues
    normDataSet = zeros(shape(dataSet))
    sh = dataSet.shape[0]
    normDataSet = dataSet - tile(minValues, (sh, 1))
    normDataSet = normDataSet / tile(total_difference_value, (sh, 1))
    return norm_data_set, total_difference_value, minValues

if __name__ == "__main__":
    printf("Code Run As A Program")
